package cz.cuni.mff.ufal.volk;

/**
 * <p>Thrown to indicate that the input of the particular type (typically text or sound)
 * is not supported by the called service.</p>
 * 
 * @author Bartłomiej Etenkowski
 */
public class UnsupportedInputTypeException extends UnsupportedOperationException {
  private static final long serialVersionUID = -4833545447314130626L;

  /**
   * Constructs an UnsupportedInputTypeException with no detail message.
   */
  public UnsupportedInputTypeException() {
  }

  /**
   * Constructs an UnsupportedInputTypeException with the specified
   * detail message.
   *
   * @param message the detail message
   */
  public UnsupportedInputTypeException(String message) {
    super(message);
  }

  /**
   * Constructs a new exception with the specified detail message and
   * cause.
   *
   * <p>Note that the detail message associated with <code>cause</code> is
   * <i>not</i> automatically incorporated in this exception's detail
   * message.
   *
   * @param  message the detail message (which is saved for later retrieval
   *         by the {@link Throwable#getMessage()} method).
   * @param  cause the cause (which is saved for later retrieval by the
   *         {@link Throwable#getCause()} method).  (A <tt>null</tt> value
   *         is permitted, and indicates that the cause is nonexistent or
   *         unknown.)
   */
  public UnsupportedInputTypeException(String message, Throwable cause) {
    super(message, cause);
  }

  /**
   * Constructs a new exception with the specified cause and a detail
   * message of <tt>(cause==null ? null : cause.toString())</tt> (which
   * typically contains the class and detail message of <tt>cause</tt>).
   * This constructor is useful for exceptions that are little more than
   * wrappers for other throwables (for example, {@link
   * java.security.PrivilegedActionException}).
   *
   * @param  cause the cause (which is saved for later retrieval by the
   *         {@link Throwable#getCause()} method).  (A <tt>null</tt> value is
   *         permitted, and indicates that the cause is nonexistent or
   *         unknown.)
   */
  public UnsupportedInputTypeException(Throwable cause) {
    super(cause);
  }
}
